{$sCreateJs}
<form id="js_form" action="{url link='answer.question.add'}" enctype="multipart/form-data" method="post" class="addCategory" onsubmit="return startProcess({$sGetJsForm}, false);">
    <div class="table category-answer">
        <div class="table_left">
            {required}{phrase var='answer.category'}:
        </div>
        <div class="table_right">
            <select name="Category" id="parent_id" class="main_category">
                <option value="0" >{phrase var='answer.choose_question_category'}</option>
                {$sCategories}
            </select>
            <div id="subcategory" style="display:none">
                {$sSubCategories}
            </div>

        </div>
    </div>
	
    <div class="separate"></div>
    
    <div class="table">
        <div class="table_left">
            {required}{phrase var='answer.title'} :
        </div>
        <div class="table_right">
            <input type="text" name="val[title]" value="{value type='input' id='title'}" id="title" size="30"/>
            <input type="hidden" name="val[id]" value="{value type='input' id='id'}" id="id" size="30"/>
        </div>
    </div>
    <!--<div class="table">
        <div class="table_left">
            {required}{phrase var='answer.title'} B:
        </div>
        <div class="table_right">
            <input type="text" name="val[title2]" value="{value type='input' id='title2'}" id="title2" size="30"/>
            
        </div>
    </div>-->
    <div class="table image">
        <div class="table_left">
            {required}{phrase var='answer.uploadimage'}:
        </div>
        <div class="table_right">
            <input name="image" type="file" id="image" size="40" />            
        </div>
        
    </div>
   {if $aForms.question_image != ''} 
    <div id="questionimage">
    	<img width="100" src="file/pic/answer/{$aForms.question_image'}" />
         <br />
        Delete Image <input class="cbmarketplace" type="checkbox" name="deleteimage" value="1" />
    </div>
    {/if}
     <!--<div class="table">
        <div class="table_left">
            {required}{phrase var='answer.whatresult'}:
        </div>
        <div class="table_right">
            <select name="is_ab" id="is_ab" class="is_ab">
                <option value="0" {if $aForms.is_ab == 0}selected="selected"{/if}>A</option>
                <option value="1" {if $aForms.is_ab == 1}selected="selected"{/if}  >B</option>
            </select>
            
        </div>
    </div>-->
    
     

    <div class="table detail">
        <div class="table_left">
            {required}{phrase var='answer.detail'}:
        </div>
        <div class="table_right">
            {editor id='detail' rows='6' }
        </div>
    </div>
    <div class="table tags">
        <div class="table_left">
         {phrase var='answer.tag'}:
        </div>
        <div class="table_right">
            <input type="text" name="val[tag]" value="{value type='input' id='tag'}" id="tag" size="30"/>
        </div>
    </div>
    <div class="table_clear">
        <input type="submit" value="{phrase var='answer.submit'}" class="button" name="add_category">
    </div>
</form>

